import request from '@/utils/request.js'

// list类开始
export function listnum(datas) {
  return request({
    url: 'server/serverlist/num',
    method: 'post',
    data: datas
  })
}
export function getlist(datas) {
  return request({
    url: 'server/serverlist/get',
    method: 'post',
    data: datas
  })
}
export function addlist(datas) {
  return request({
    url: 'server/serverlist/save',
    method: 'post',
    data: datas
  })
}
export function updatelist(datas) {
  return request({
    url: 'server/serverlist/update',
    method: 'post',
    data: datas
  })
}
export function deletelist(datas) {
  return request({
    url: 'server/serverlist/delete',
    method: 'post',
    data: datas
  })
}
export function getalllist(datas) {
  return request({
    url: 'server/serverlist/getAll',
    method: 'post',
    data: datas
  })
}
// list类结束

// order类开始
export function ordernum(datas) {
  return request({
    url: 'server/serverorder/num',
    method: 'post',
    data: datas
  })
}
export function updateorder(datas) {
  return request({
    url: 'server/serverorder/update',
    method: 'post',
    data: datas
  })
}
export function orderSearch(datas) {
  return request({
    url: 'server/serverorder/orderSearch',
    method: 'post',
    data: datas
  })
}
export function getorder(datas) {
  return request({
    url: 'server/serverorder/all',
    method: 'post',
    data: datas
  })
}
export function addorder(datas) {
  return request({
    url: 'ServerOrder/addServerOrder',
    method: 'post',
    data: datas
  })
}
export function deleteorder(datas) {
  return request({
    url: 'Serverorder/delete',
    method: 'post',
    data: datas
  })
}

// order类结束

// service类开始
export function getallservice(datas) {
  return request({
    url: 'server/servers/getAll',
    method: 'post',
    data: datas
  })
}
export function getservice(datas) {
  return request({
    url: 'server/servers/get',
    method: 'post',
    data: datas
  })
}
export function getservicenum(datas) {
  return request({
    url: 'server/servers/num',
    method: 'post',
    data: datas
  })
}
export function addservice(datas) {
  return request({
    url: 'server/servers/save',
    method: 'post',
    data: datas
  })
}
export function updataservice(datas) {
  return request({
    url: 'server/servers/update',
    method: 'post',
    data: datas
  })
}
export function deleteservice(datas) {
  return request({
    url: 'server/servers/delete',
    method: 'post',
    data: datas
  })
}
export function searchservice(datas) {
  return request({
    url: 'server/servers/serverSearch',
    method: 'post',
    data: datas
  })
}

// class类
export function addclass(datas) {
  return request({
    url: 'server/serverclass/save',
    method: 'post',
    data: datas
  })
}
export function getclass(datas) {
  return request({
    url: 'server/serverclass/get',
    method: 'post',
    data: datas
  })
}

export function deleteclass(datas) {
  return request({
    url: 'server/serverclass/delete',
    method: 'post',
    data: datas
  })
}

export function updateclass(datas) {
  return request({
    url: 'server/serverclass/update',
    method: 'post',
    data: datas
  })
}

export function getreceiving(datas) {
  return request({
    url: 'ReceiveOrder/Receiveorder',
    method: 'post',
    data: datas
  })
}
export function timereceiving(datas) {
  return request({
    url: 'ReceiveOrder/getReceiveOrder',
    method: 'post',
    data: datas
  })
}
//img类

export function saveimg(datas) {
  return request({
    url: 'server/serverimg/save',
    method: 'post',
    data: datas
  })
}
export function updateimg(datas) {
  return request({
    url: 'server/serverimg/update',
    method: 'post',
    data: datas
  })
}
export function deleteimg(datas) {
  return request({
    url: 'server/serverimg/delete',
    method: 'post',
    data: datas
  })
}

//bacK
export function getback(datas) {
  return request({
    url: 'server/backyue/get',
    method: 'post',
    data: datas
  })
}
export function updateback(datas) {
  return request({
    url: 'server/backyue/update',
    method: 'post',
    data: datas
  })
}
